package com.gyg.client;

import com.gyg.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloudSpaceClient", url = "${cloud.box.url}")
public interface CloudSpaceClient {

    /**
     * 获取云盘容量信息
     * @param userId
     * @return
     */
    @GetMapping("/cloud-space/info")
    RespEntity getCloudSpaceInfo(@RequestParam(value = "userId") Integer userId);

}
